package com.corpcredit.webapp.action;

import java.io.Serializable;
import java.util.List;

import com.corpcredit.webapp.action.BasePage;
import com.corpcredit.model.Pdfl2;
import com.corpcredit.service.GenericManager;

public class Pdfl2List extends BasePage implements Serializable {
    private GenericManager<Pdfl2, Long> pdfl2Manager;

    public void setPdfl2Manager(GenericManager<Pdfl2, Long> pdfl2Manager) {
        this.pdfl2Manager = pdfl2Manager;
    }

    public Pdfl2List() {
        setSortColumn("id"); // sets the default sort column
    }

    public List getPdfl2s() {
        return sort(pdfl2Manager.getAll());
    }
}

